package hzau.service;

import hzau.pojo.Paper;
import hzau.pojo.requestParams.PaperParam;
import hzau.result.Result;


public interface PaperService {
    Result update(Paper paper);

    Result register(PaperParam paper, String token);

    Result delete(Long id);

    Result getAllQuestion(Long id);

    Result getPaper(Long id);

    Result updateState(Long id, Short state);

    Result getByTeacherId(Long id ,Integer page);

    Result getById(Long id);

    Result getByReviewId(Long reviewId, Integer page);

    Result updateAdvice(String advice, Long paperId);

    Result deletePaper(Long paperId);

    Result getPresidentReviewPaper(String token, Integer page);

    Result presidentAdvice(String advice, Long paperId);

    Result genPaper(Long paperId) throws Exception;

    Result getRecentYearPaper(Long paperId);

    Result getRecentYearPaperSimilarity(Long paperId);
}
